﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Vehicle.Interface
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：IBase_DAL.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-07-26    Created by 杨光远 V1.00.0000
    /// 功能说明：IBase_DAL接口层类（继承于接口层基类)
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public  interface IBase_DAL
    {
          /// <summary>
        /// 通用删除方法
        /// </summary>
        /// <param name="m_Components">通用实体层对象</param>
        void Delete(Model.ComponentsInfo m_Components);

         /// <summary>
        /// 通过标题或时间获得数据总数
        /// </summary>
        /// <param name="m_Components">通用实体层对象</param>
        /// <returns>总数</returns>
        int GetAllSearchCount(Model.ComponentsInfo m_Components);

          /// <summary>
        /// 获得数据总数
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        /// <returns>总数</returns>
        int GetAllCount(Model.ComponentsInfo m_Components);

         /// <summary>
        /// 通用获得数据
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        /// <returns>返回DataTable</returns>
        DataTable GetModel(Model.ComponentsInfo m_Components);

          /// <summary>
        /// 通用通过标题或时间获得分页数据
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        /// <returns></returns>
        DataTable GetAllSearch(Model.ComponentsInfo m_Components);

         /// <summary>
        /// 通用更新只能更新一个值
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        void AllUpdate(Model.ComponentsInfo m_Components);
    }

}
